Skip to content

Conversation

@jean-baptisteboric-eaton
Copy link

@jean-baptisteboric-eaton jean-baptisteboric-eaton commented Jun 18, 2025

Description

This PR adds support for parsing and verifying PKCS#7 files with the following characteristics:

  • Authenticated attributes (specifically content type and message digest, other attributes are ignored)
  • Multiple embedded certificates

Note: the use-case spurring this development was verifying PKCS#7 signatures provided by an existing code signing server. This is the minimum set of modifications needed to handle the certificates produced by that server as-is.

PR checklist

Signed-off-by: Jean-Baptiste Boric <[email protected]>
@ronald-cron-arm
Copy link
Contributor

Thank you very much for this contribution. The last commit is missing the "Signed-off-by:..." line. Otherwise, why did you mark it as a draft?

@jean-baptisteboric-eaton jean-baptisteboric-eaton force-pushed the pkcs7-authenticated-attributes branch from ce8a052 to 307b02c Compare June 19, 2025 07:43
@jean-baptisteboric-eaton
Copy link
Author

Otherwise, why did you mark it as a draft?

This is my first time contributing to this project, so I've erred on the side of caution while following the guidelines for contributions. Aside from that, the code should be in good enough shape for a review.

I've amended the last commit with the sign-off.

@jean-baptisteboric-eaton jean-baptisteboric-eaton marked this pull request as ready for review June 19, 2025 07:54
@beni-sandu
Copy link
Contributor

Thanks for the contribution, I have attempted to add this functionality a while ago (https://github.com/Mbed-TLS/mbedtls/pulls/beni-sandu), but it didn't make it in, so maybe your version will (since I haven't rebased since then).

I am interested in this, so will have a closer look at the code when I get the chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants